package week3;

import java.util.Arrays;
import java.util.Scanner;
class Rectangle{
	private int width,length;
	public Rectangle(int width,int length){
		this.width = width;
		this.length = length;
	}

	public String toString() {
		return "Rectangle [width=" + width + ", length=" + length + "]";
	}
	public int getPerimeter(){
		return width*2+length*2;
		
	}
	public int getArea(){
		return width*length;
	}
	
}

class Circle{
	private int radius;
	public Circle(int radius){
		this.radius = radius;
	}
	public String toString() {
		return "Circle [radius=" + radius + "]";
	}
	public int getPerimeter(){
		
		return (int)(Math.PI*2*radius);
		
	}
	public int getArea(){
		return (int)(Math.PI*radius*radius);
	}
}

public class Main3 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in 

);
		String rec[] = new String[2];
		int zhou=0,mian=0;
		for(int i=0;i<2;i++){
			String a =sc.nextLine();
			String[] a1 = a.split(" ");
			int b = Integer.parseInt(a1[0]);
			int c = Integer.parseInt(a1[1]);
			Rectangle r = new Rectangle(b,c);
			rec[i]=r.toString();
			zhou+=r.getPerimeter();
			mian+=r.getArea();
			
		}
		String cir[] = new String[2];
		for(int i=0;i<2;i++){
			int a = sc.nextInt();
			Circle c = new Circle(a);
			cir[i]=c.toString();
			zhou+=c.getPerimeter();
			mian+=c.getArea();
		}
		System.out.println(zhou);
		System.out.println(mian);
		System.out.println(Arrays.deepToString(rec));
		System.out.print(Arrays.deepToString(cir));
		
		

	}

}
